import Mock from 'mockjs'
const { usersInfo } = Mock.mock({
  'usersInfo|5-10': [
    {
      name: '@province', "value|100-1000": 100
    }
  ],
})
Mock.mock(`/province/list`, 'get', () => {
  return {
    code: 200,
    msg: '查询成功！',
    data: usersInfo
  }
})

const leida = Mock.mock({
  'usersInfo|6': [
    {
      name: '@province', "max|8000-10000": 100
    }
  ],
  'value|2': [
    [
      '@natural(2000, 8000)', '@natural(1000, 8000)', '@natural(1000, 8000)', '@natural(1000, 8000)', '@natural(1000, 8000)', '@natural(1000, 8000)',
    ]
  ],
})

Mock.mock(`/leida/list`, 'get', () => {
  return {
    code: 200,
    msg: '查询成功！',
    data: leida
  }
})

// 地图
Mock.mock('/dashboard/mock/map', 'get', () => {
  return Mock.mock({
    'price|34': ['@integer(0,101)']
  })
})

